<!DOCTYPE html>
<table style="border-collapse: collapse">
  <tr style="border: 1px solid black">
    <td id="target" style="visibility: hidden">Border expected</td>
  </tr>
</table>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
  target.style.visibility = 'visible';
}, true);
</script>
